package com.lanou3g.farmdoctor.application;

import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.support.v7.app.AppCompatActivity;

import com.lanou3g.farmdoctor.activity.MainActivity;

import java.util.ArrayList;

/**
 * 本类由: Risky 创建于: 15/11/24.
 */
public class FDApplication extends Application {
    private static Context mContext;

    public static MainActivity mainActivity;

    @Override
    public void onCreate() {
        super.onCreate();
        mContext = getApplicationContext();
    }

    public static Context getContext() {
        return mContext;
    }

    public static void setMainActivity(MainActivity activity) {
        mainActivity = activity;
    }

    public static MainActivity getMainActivity(){
        return mainActivity;
    }
}
